<?php
use \think\Route;
//登录以及出token
Route::group('list',function (){
    Route::post('login','user/Login/login');
});
//公告查询
Route::group('notice',function (){
    Route::get('index','user/Notice/index');
});
//菜单查询
Route::group('menu',function (){
    Route::get('index','user/Menu/index');
    Route::get('list','user/Menu/list');

});
//轮播图查询
Route::group('banner',function (){
    Route::get('index','user/banner/index');
//    Route::get('n_index','user/Nav/index');
});
//产品列表查询
Route::group('product',function (){
    Route::get('index1','user/detail/index1');
    Route::get('list','user/detail/list');
    Route::post('detail','user/detail/detail');
});

//收货地址
Route::group('address',function () {
    Route::post('add', 'user/Address/add');
    Route::get('index', 'user/Address/index');
    Route::get('edit', 'user/Address/edit');
    Route::post('update', 'user/Address/update');
    Route::get('delete', 'user/Address/delete');
});
//选择租赁期限
Route::group('term',function (){
    Route::get('index','user/Term/index');
    //只查看可租赁的选项
    Route::get('list','user/Term/list');

});
//订单页面
Route::group('place',function (){
    Route::get('index','user/Placeorder/index');
    Route::get('list','user/Order/index');
    Route::post('add','user/Order/add');
    Route::get('order','user/Order/order');
    //支付
    Route::get('fin','user/Pay/index');
    //收货
    Route::get('rece','user/Pay/rece');
    //到期
    Route::get('expire','user/Pay/expire');
    //归还
    Route::get('return','user/Pay/return');
    //续租
    Route::post('lease','user/Pay/lease');
});
//个人信息
Route::group('member',function (){
    Route::get('index','user/Member/index');
    Route::post('upload','user/member/upload');
    Route::post('update','user/member/update');
});

//设备报修
Route::group('repair',function () {
    Route::get('list','user/Repair/index');
    Route::post('add','user/Repair/add');

});
//意见反馈
Route::group('yj',function (){
    Route::post('add','user/Yj/add');
});
//Route::group('pa',function (){
//    Route::get('fin','user/Pay/index');
//});
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//return [
//    //别名配置,别名只能是映射到控制器且访问时必须加上请求的方法
//    '__alias__'   => [
//    ],
//    //变量规则
//    '__pattern__' => [
//    ],
////        域名绑定到模块
////        '__domain__'  => [
////            'admin' => 'admin',
////            'api'   => 'api',
////        ],
//];
